﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel;

namespace QlrrPrintService.Common
{
    

    

    /// <summary>
    /// 打印机端口状态
    /// </summary>
    public enum PrinterPortState
    {
        Closed=-1,
        Opened=1,
    }

    /// <summary>
    /// 打印机状态
    /// </summary>
    public enum PrinterState 
    {
        [Description("UnKnown")]
        UnKnown=0x90,

        //待機中
        [Description("Waiting")]
        Waiting=0x00,

        //印字頭開啟
        [Description("PrintHeadOpen")]
        PrintHeadOpen=0x01,

        //卡紙
        [Description("Paperboard")]
        Paperboard=0x02,

        //卡紙並開啟印字頭
        [Description("PrintHeadOpenAndPaperboard")]
        PrintHeadOpenAndPaperboard=0x03,

        //缺紙
        [Description("OutOfPaper")]
        OutOfPaper=0x04,

        //缺紙並開啟印字頭
        [Description("OutOfPaperAndPrintHeadOpen")]
        OutOfPaperAndPrintHeadOpen=0x05,

        //缺碳帶
        [Description("OutOfRibbon")]
        OutOfRibbon=0x08,

        //缺碳帶並開啟印字頭
        [Description("PrintHeadOpenAndOutOfRibbon")]
        PrintHeadOpenAndOutOfRibbon=0x09,

        //缺碳帶並卡紙
        [Description("OutOfRibbonAndPaperboard")]
        OutOfRibbonAndPaperboard=0x0A,

        //缺碳帶並卡紙及開啟印字頭
        [Description("OutOfRibbonAndPaperboardAndPrintHeadOpen")]
        OutOfRibbonAndPaperboardAndPrintHeadOpen=0x0B,

        //缺碳帶並同時缺紙
         [Description("OutOfRibbonAndOutOfPaper")]
        OutOfRibbonAndOutOfPaper=0x0C,

        //缺碳帶、缺紙並開啟印字頭
        [Description("OutOfRibAndOutOfPaperAndPrintHeadOpen")]
        OutOfRibAndOutOfPaperAndPrintHeadOpen=0x0D,

        //暫停
         [Description("Pause")]
        Pause=0x10,

        //打印中
        [Description("Printing")]
        Printing=0x20,
    }

    public enum Express
    {
        SF=1,
        EMS=2,
        ZT=3,
    }
    /// <summary>
    /// 錯誤糾正能力等級
    /// </summary>
    //public enum QRCODE_ECC
    //{
    //    L=0.07,
    //    M=0.15,
    //    Q=0.25,
    //    H=0.30,
    //}

    /// <summary>
    /// 自動生成編碼/手動生成編碼
    /// </summary>
    //public enum QRCODE_MODE
    //{
    //    A="A",
    //    M="M",
    //}

    /// <summary>
    /// 條碼生成樣式
    /// </summary>
    public enum QRCODE_MODEL
    {
        /// <summary>
        /// 原始
        /// </summary>
        Original=1,

        /// <summary>
        /// 扩大
        /// </summary>
        Expand=2,
    }

    public enum ErrInfoType
    {
        /// <summary>
        /// 未知的错误
        /// </summary>
        UnKnow=0,
        /// <summary>
        /// 没有安装Service
        /// </summary>
        NotInstallService=100,

        /// <summary>
        /// 无法启动Service
        /// </summary>
        CanNotInstallService=101,

        /// <summary>
        /// 发送数据失败
        /// </summary>
        SendDataFailed=200,
    }
}
